Add "clip" and "grid" support to PostGIS input plugin

For "clip", uses ST_ClipToBox2D function from upcoming PostGIS 2.2.

Adds parameters "clip_geometries" and "grid_geometries".
Also adds max resolution parameter for simplify and grid and
min resolution parameter for clip.