Moved stuff over from piston

Closes https://github.com/PistonDevelopers/rust-event/issues/127
Merge pull request #128 from bvssvni/master

Moved stuff over from piston