regenerate keystore if it's lost
postgresql: accept empty db_host as localhost
ssl: add ordering requirement
Merge pull request #2 from DavidS/master

a few fixes
Added prerequisite (optional) class that installs puppetlabs repo
Fix for automatic postgres credential creation
Sane port check for default setup
Fix for postgres grants when on localhost