Enhancements - HTTP/HTTPS handing

Added functionality that prompts the script to get the token URL from
the ArcGIS Server REST Info page. Also fixed an issue where using HTTP
in the Server URL while services were referenced in the input JSON via
HTTPS would not apply a token.