Update to work with express 3.0
Update to work with express 3.0

Pass express app to node's http.createServer.
Implement the text/plain JSON parser as middleware, rather than as an
extension to the bodyParser middleware.
Make sure we cleanly start and stop the server, which happens several
times in the tests.

LocalData/localdata-api,LocalData/localdata-api,LocalData/localdata-api