Implement login/logout actions with ui-router, resolves #1