Begin Model class refactoring. Added Mesh class and mesh factory.