Add missing dependencies, and wrap for better presentation.
Actually create the databases at some point!
Alter the example db config to use socket connections - these are enabled by default on Ubuntu.
More database-related tweaks.

I've removed all the duplicate setting up of databases. Most developers don't need the production database, those who do can work through it again.
Remove the database creation code, which is covered further up by rake db:create
Tests work without manual btree_gist installation, so happy days.
Found a package that depends on whichever postgresql-server-dev-X.X is required. Simplifies notes.
More copy.