Add better locale handling to the front end. Locale saves to the
database now, too.