Added support for events on plain objects

This adds the ability to use the event system on regular javascript objects, a feature which jQuery also supports. 

Example: 

     var myObject = {
          _value: null,
          setValue: function (value) {
              this._value = value;
              $(this).trigger('value', value);
          }
     };
    
     $(myObject).on('value', function(event, val) {
         console.log("Value changed: " + val);
     });
    
     myObject.setValue(3);