Remove unused code (this is already handled in auto_get_or_create)
Simplify base language guess
Use canonical language code when automatically creating language

This prevents various problems with non standard language names.

Fixes #318
Try harder to get base language defintion

For en_CA@foo it would first try en_CA and fallback to en.
Test more language codes processing