Refactor serializer to not be coupled to the store. Better handling of embedded record lifecycles.