Make the resource model implement Serializable.
Make the entities serializable.
Merge branch 'master' into ENGINE-547
Merge pull request #9 from evrythng/ENGINE-547

Make the entities serializable