Rewrote UI code using the fabulous MigLayout; added mode picker to the editor; added rough draft of the tile type editor mode