Rewrite query URLs to use appengine REST API