Some Random Fixes

Fixed: Removed the environment class from the registry and changed the order of the other classes a bit.
Fixed: Removed an old code section from the profile deserializer which was only used during development of the deserializer.
Fixed: A small style fix in the profile serializer test.