Add hostedDomain parameter

suggested at http://stackoverflow.com/a/11001585/1047788