Convert themeswitcher ext to CoffeeScript, simplify
Convert location ext to CS

Also better error-checking in several places, simpler demo, update demo style.