Added formatted writes for Map Generation.

Provides a formatted_set_terrain method. Also added helper.cpp to the
cbp file.
Added back the rotate call I that got removed

Derr.
Merge helper functions for easier static map feature generation.