Initial implementation of the filter to SQL converter

Generating filtered tiles requires converting the standard OTM2 filter
syntax into a Postgres-compatible WHERE clause.

I included documentation generated with docco.