Allow standalone execution of Mocha tests

Make Mocha read .env and .env.test to allow running app tests simply be
executing “mocha” from the command line.
Extract parsePgOptions
Extract grunt task p2e:schema:dump
Move deployment scripts over to pine2e