Added login, logout and access denied handlers for REST bases applications.