some contributions

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