Change ApplicationBase.by_domain to get_apps_in_domain
Add missing imports
add docstring for apps_in_domain
simplify api call
Merge pull request #4783 from dimagi/fix-app-by-domain

Fix app by domain