Fixed issues with setupdb_app: version determination and error trapping.  This allows setup to work with PostgreSQL 9.4, among other things.
Merge pull request #2411 from jberkus/createdbfixes

Fixed issues with setupdb_app: version determination and error trapping....