Made everything Decodable and Encodable

Closes https://github.com/PistonDevelopers/input/issues/64