Generate heightmap

This adds the heightmap generation tool. We should probably keep this in the main repo.

@kadst43 @eric79