Pull request

Hi Rob,

I did some updates to this module.

First of all I updated it to become a NPM - added a package.json file.
Then I added some methods that helps with making graceful shutdowns on eg. Heroku by making sure that there are no connections hanging around waiting for updates in an otherwise shutdown app.
I also did a coding style makeover even though I know how much people can hate when others do that to their code, but since this is a pretty old package I'm sure you agree that the old coding style was a bit out of date with the current Node community.

Would be lovely to get these changes upstream and have a package published on NPM. If you don't like the coding style changes then I can surely pick them out and make this a pull request for just the new features.