Allow an object to subscribe to events
Merge pull request #6 from stuartrexking/master

Allow an object to subscribe to events.