Minor tweaks to ui/text editor.

FWTileset will return a random tile for Id.Wall from the three available wall tiles.
The editor will automatically update its language when a file is loaded, based on extension.