postgis connection error handling improvements

deals with #126 and tests for postgis extension, also
gives a ''connecting' status message and handles errors better