using mediator-style message bus for auth
WIP
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
WIP: defining permission object and mechanism for testing against availibility
documenting and refactoring Auth's State.js
refactoring loginView to listen for "close" event instead of direct function call
Adding access control to the Contracts module
console.log fix for ie and other browsers