added events for logged in and out, and auth requests
refactoring authentication ajax to done/fail/always
refactored login form verify/authenticate call to event
show authentication errors from the server inside login form