Change default database to postgresql for all environments.

Added and installed `pg' gem. Re-ran database migrations for pg.
Updated database.yml to work with pg; credentials are stored in
application.yml.