Refactored Mesh into a base class and a subclass.
Added another implementation of Mesh.
Hopefully didn't mess up very much with rebase. ;-)