Upgrade library to run under Node 0.10.x

Some changes were required to handle how url.parse is implemented in Node 0.10.x