code: function Model(name, config) {
  	this.name = name;
  
  	utils.defaultsDeep(config, {
  		attributes: {},
  		sharedMethods: {},
  		clientMethods: {},
  		serverMethods: {},
  		hooks: {},
  		options: {
  			allowREST: true,
  			middlewares: [],
  			generateClientModel: true,
  			hooks: {}
  		},
  		relationships: {}
  	});
  
  	//Copy all configs to the model object
  	for(var c in config) {
  		if(config.hasOwnProperty(c)) {
  			this[c] = config[c];
  		}
  	}
  
  	return this;
  }
docs: Model constructor
  @constructor
  @param {String} name   Name of the model
  @param {Object} config The object with model info