TileSet Refactoring

This gives some much needed improvements:
* Support for additional tile formats (.R8 as part of this pr, TS/RA2 .tmp in the future).
* More efficient use of texture space.
* Support for the ingame map editor.