code: function registerClass(name, constructor) {
  
  	var context = exports.Classes;
  
  	if (typeof name == 'function') {
  		constructor = name;
  		name = constructor.name;
  	}
  
  	if (constructor.namespace) {
  		context = fromPath(exports.Classes, constructor.namespace);
  
  		if (!context) {
  			context = {};
  			setPath(exports.Classes, constructor.namespace.split('.'), context);
  		}
  	}
  
  	context[name] = constructor;
  }
docs: Register a class that can be serialized/revived
  
  @author   Jelle De Loecker   <jelle@develry.be>
  @since    1.0.0
  @version  1.0.5
  
  @param    {String}            name          The optional name of the class
  @param    {Function|String}   constructor   What constructor to listen to