Postgres support for Transition apps

Adds the same module we use in GOV.UK puppet and then creates a database
for the Transition app to use.
That is a good point, however I intend to fix it in the next couple of days anyway, so it's more a TODO for me now, not a FIXME timebomb to catch someone else out later ;o)