Update with request module

This version now handles digest requests as a wrapper around node request module. I have also added some tests, though of course you need an appropriate server to talk to.