Implement input plugin for PostGIS Rasters

Closes #1660.
Includes python bindings and testcases.
Merge pull request #2329 from strk/2.3.x-pgraster2

Implement input plugin for PostGIS Rasters