Angular.js module that sets $rootScope.isOnline to true if application is online, false if offline.