login basically working, logout added
Merge branch 'feature-deferred' into feature-menu
powerState can replace stateDemo now