Adding loading of teams and adding a common method for reading/writing from the cache and service for entities. Also added serialization of collections.