Application state and dependency injection.
AppState holds the shared RunStore and Engine used by all handlers.
AppState
RunStore
Engine