Page transitions, callbacks, login improvements

Can now hook before change and on change events for pages. Server
heartbeat/pulse has been implemented, and monitors your login status
every 15 minutes or whenever a request is made to the server. Login/out
pages are now powered by JS and respond to your session status.