Add arcgis rest

NOTE: This is currently based on the REST branch so there are extra commits.