Turn tile into a class.

Change map file output.
Missed a spot.
Better dumping.
Added tileset class.
Added tiletype.
Map creation no longer uses tilegenerator.
Loading new map files, success!
Safety in file loading.
Merge branch 'map-refactor'