Enable instant login API & added events for login/logout

Fixed issue #29
Fixed issue #30
grunt clean
Merge pull request #32 from jbuck/events

Enable instant login API & added events for login/logout