Got ArcGIS query support working

Having written two or three similar implementations in the last couple
of months, this was pretty easy.  Querying a REST api layer works now,
at least crudely.

Notably, geometry isn't handled yet, but I'll get to it.