Add Subdomain Locale Guesser

Cleaned up rebase of last PR.