Fixed #8. Added an offline page that user will be redirected to anytime they use the API to connect to the Drupal site. Added a new drupalgap.online boolean which indicates if the device is online or not, modified drupalgap_check_connection for this.