old_contents: (function (undefined) {
      // Common JS // require JS
      var _, $, Backbone, exports;
      if (typeof window === 'undefined' || typeof require === 'function') {
          $ = require('jquery');
          _ = require('underscore');
          Backbone = require('backbone');
          exports = Backbone;
          if (module) module.exports = exports;
      } else {
          $ = this.$;
          _ = this._;
          Backbone = this.Backbone;
          exports = this;
      }
  
      Backbone.Model.prototype.idAttribute = "_id";
  
  })();
new_contents: (function (undefined) {
      // Common JS // require JS
      var _, $, Backbone, exports;
      if (typeof window === 'undefined' || typeof require === 'function') {
          $ = require('jquery');
          _ = require('underscore');
          Backbone = require('backbone');
          exports = Backbone;
          if (module) module.exports = exports;
      } else {
          $ = this.$;
          _ = this._;
          Backbone = this.Backbone;
          exports = this;
      }
  
      Backbone.Model.prototype.idAttribute = "_id";
  
      //TODO: move to it's own js
      Backbone.Model.prototype.register = function(logic) {
          this.logic = logic;
      };
  
      Backbone.Model.prototype.publish = function(socket, method, model, cb) {
          if(this.key) {
              socket.emit('publish', {
                  method: method,
                  logic: this.key
              }, model, cb);
          }
      };
      Backbone.Collection.prototype.register = function(key) {
          this.key = key;
      };
  
      Backbone.Collection.prototype.publish = function(socket, method, collection, cb) {
          if(this.key) {
              socket.emit('publish', {
                  method: method,
                  logic: this.key
              }, collection, cb);
          }
      };
  
  })();
subject: add publish to app-mongo-model.