Updated ECS serialization to use serialization and deserialization objects external to the components.

This will be necessary in order to support serialization of components which include asset references.