fix realtime map was only working if user is logged in anonymously
unregister all attached events to prevent memory leaks
coding style
added method getAuthToken needed in realtime map