Fix options for postgres setup

We need to call getOpts() before setting the
database, user, password, and app mode.
Fix execution permission on scripts

These should have been committed as executable,
but weren't due to development on an NTFS filesystem
with core.filemode = false in my .gitconfig.
Update bcrypt to 0.7.7