Move get_domain into own module.
Fix #6: Add site whitelisting.