Edited to change urls to relative portal urls

Edited to change urls to relative portal urls. Will need to come up with
a way to easily switch between arcgis.com and relative urls.