Initial implementation of the filter to SQL convertor

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

I included documentation generated with docco.