added support for portal
Merge branch 'master' of https://github.com/Esri/ArcREST