Add support for Node.js v0.10

With these commits, the HTTP API server is able to run with Node.js v0.10, mostly due to updated dependency definitions in `package.json`. Also, the test suite is fixed so that all tests pass again.