Initial conversion of GIS backend to new expressions

Two tests are still failing, and only postgis has been tested, but
the conversion was relatively simple.

There was a bug in sql/compiler that passed the quote_name function
to the expression rather than itself. Doing so breaks the query
expression api.