Adds Entity support to factories
Adds EntitySerializationRoundtripTest
Merge pull request #31 from Tpt/EntityRoundtrip

Entity roundtrip