* Move State handling to misc, to avoid circular imports * Add optional config attribute "initial_state"