Use `window.location.protocol` to set url prefix instead of `//`.

This prevents problems with ESRI's `PrintTask` class.
Merge pull request #54 from agrc/urls

Use `window.location.protocol` to set url prefix instead of `//`.