Made State serializable

Closes https://github.com/PistonDevelopers/event/issues/223
Merge pull request #224 from bvssvni/master

Made State serializable