Splitting ModelManager

Started splitting the god class ModelManager in a few new classes and
transferring the fields and the methods managing them to the new classes