add state service
refactor state to conform with standards
add cd-logon directive
apply to view
stabilize test
BROKEN: Not working signout
log out functionality
add missing login view