Update app.js to new APIs
Update app.js to new APIs

The API changes were driven by what we wanted to be able to use, with
an emphasis on control over what happens in HTTP and in the Node.js
libraries. We wrote the kind of API we wanted in the following gist:
https://gist.github.com/espadrine/909be38537dd06d3a4dc

espadrine/sc,espadrine/sc