HomeIn-Portal Phabricator

Fixes INP-1387 - Move primary theme/language detection into corresponding units