Added Tileset saving.

Also added NCGR loading, and various palette saving/loading functions.