add login and logout event
fix utils include
jshint fix
add dist with login/logout events
add documentation to authentication
rename login events

fire login on successful authentication
fire authenticationerror on authentication fail