some changes to make it easier to run tests

Using 'npm test' to run tests without having to have gulp available as a globally installed module.

Under this usage, the process was not exiting correctly so added a bit to the end of the gulp stream to make it end when mocha ends.

Change the test harness to use the connection provided in pg-events.json.

Now for it to run on my box the only change I'm making is in the pg-events.json file. :)