Remove direct pg dependency

refs #1333
- Adjust Travis build to install pg
- Remove pg from package.json
Merge pull request #1590 from halfdan/1333-pg-travis

Remove direct pg dependency