Made everything Decodable and Encodable

Closes https://github.com/PistonDevelopers/input/issues/64
Merge pull request #65 from bvssvni/master

Made everything Decodable and Encodable