Added support for custom ownership in event loop

Closes https://github.com/PistonDevelopers/event/issues/256