Added authentication check for notification server
When offline mode is detected socket.io is notified immediately of offline state instead of waiting for heartbeat to fail.
Merge branch 'master' of https://github.com/Gisto/Gisto