raise 404 on missing domain
normalize domain
remove dead code
Merge pull request #2414 from dimagi/domain-missing

raise 404 on missing domain