Made Behavior serializable

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

Made Behavior serializable