Default api_url for hostedplace should not rely on location.origin

When did Github get rid of the character limit on the edit button's
commit messages? :D