(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";

})();
@@ -504,13 +504,738 @@
 %22_id%22;%0A%0A
+    //TODO: move to it's own js%0A    Backbone.Model.prototype.register = function(logic) %7B%0A        this.logic = logic;%0A    %7D;%0A%0A    Backbone.Model.prototype.publish = function(socket, method, model, cb) %7B%0A        if(this.key) %7B%0A            socket.emit('publish', %7B%0A                method: method,%0A                logic: this.key%0A            %7D, model, cb);%0A        %7D%0A    %7D;%0A    Backbone.Collection.prototype.register = function(key) %7B%0A        this.key = key;%0A    %7D;%0A%0A    Backbone.Collection.prototype.publish = function(socket, method, collection, cb) %7B%0A        if(this.key) %7B%0A            socket.emit('publish', %7B%0A                method: method,%0A                logic: this.key%0A            %7D, collection, cb);%0A        %7D%0A    %7D;%0A%0A
 %7D)();

add publish to app-mongo-model.