Moves the definition of class object into a separate file.
Renames file type_factory.hpp to module.hpp.
Renamed type_factory to module.