Refactor to use new login/logout API
Refactor core.view to use AuthManagers