A few modifications with events.
Fixed some context issues.
Changed events to meet new spec. Also allowed for overwriting individual event types.
Changed example URI to localhost.