[#680] Replace schema for AWS and GAE URLs
[#680] Fix REST adapter URL

* The `window.location.origin` is the easier way to get the protocol,
  host and port, but it seems that IE doesn't expose that property
Merge pull request #681 from akvo/issue/680

[#680] Replace schema for AWS and GAE URLs