Various fixes

Fun stuff. I wonder how many people are actively using this code... there were a number of rather silly bugs in the map code which made it NOT do the right thing at all and could actually get my browser to suck up all CPU and even crash the tab the map was running in.
Also, I added the missing localization / metric support to the map and fixed correct propagation of language and metric / imperial settings when clicking on various links.