ECMS-6148: Cannot load Common Selector when portal is rendered inside an iframe

Fix description:
- Get hostname by src property of iframe if portal is rendered in an iframe or location in normal case

Conflicts:
	apps/resources-wcm/src/main/webapp/javascript/eXo/wcm/backoffice/private/WCMUtils.js
ECMS-6148: Fix IE case