Adding postgis support.

Also simplifying the project.