Canonicalize TM locales before storing them.

This makes TM matches available in cases where a TM file has languages in the form "en-us" while Zanata's internal representation has "en-US".
Use StringTokenizer for locale canonicalization.
Merge pull request #109 from zanata/locale-canonicalization

Canonicalize TM locales before storing them.