Refactor terrain classes.

Refactor heightmap into SmoothTerrainModel and terrain into SmoothTerrainRendering.