Added getPreferredLanguage.

Also renamed the other methods for clarity. The 'default' locale for SamsoN is really not like that
of java, so rename. It's still a bit annoying that the formatting locale and message manager locale
are separate, but I'm not sure it's avoidable.