[Chef 11.10] Support auto-detecting Postgres databases and using the right adapter

`RailsConfiguration.determine_database_adapter` defaults to the "mysql" adapter if it doesn't find mysql2 in the bundle. This PR adds support for checking for the "pg" gem, and if so, using the "postgresql" adapter.

License: Public Domain. Do anything you want with this PR, including relicensing.