function saveFile(title, body) {
    var di = diNotify({
      message: 'Saving File to Dropbox...',
      duration: 5000
    });

    return $http.post('save/dropbox', {
      pathToMdFile: '/Dillinger/' + title,
      fileContents: body
    }).then(
      function successCallback(response){
      if (angular.isDefined(di.$scope)) {
        di.$scope.$close();
      }
      if (response.data.error) {
        return diNotify({
          message: 'An Error occured: ' + response.data.error,
          duration: 5000
        });
      } else {
        if (window.ga) {
          ga('send', 'event', 'click', 'Save To Dropbox', 'Save To...')
        }
        return diNotify({
          message: 'Successfully saved to: ' + response.data.data.path_display,
          duration: 5000
        });
      }
      }, function errorCallback(err){
        return diNotify({
          message: 'An Error occured: ' + err
        });
      });

  }
Save File to Dropbox.
   The file will be put into the Dropbox/Dillinger directory.

   @param  {String}  title  Title of the document.
   @param  {String}  body   Body of the document.

   @examples
   var
   title = 'Document Title.md',
   body  = 'Document Body text!';