Made the ContentManager factory generic and extensible. Also modified existing code to use the new interface.