Added MeshGenerator.

Moved it from flow-commons.