Introduce two states, ENABLED and DISABLED, in a new states.py file, and set engine to disabled when stopped, and enabled when running Change-Id: I1d4c89b453ac04cd5dce09c5faafe3241cd2dc43