fixes to make the thing run in the first place

fix (non-)static issues with domain_mapping_siteurl() and get_original_url()