yahoo/mojito — pull request #1101 by imalberto (2013-05-07 17:03:15+00:00)
Title: Review 'app.js' proposal for discussion

----
#### DO NOT MERGE
----

This PR proposes some ideas for discussion as to how `app.js` should be implemented.

In previous versions of Mojito, `server.js` acted sort of a black box and it was not easy for users to hook handlers / middlewares on the `app` instance.

The example `examples/newsboxes` has been updated and can be started with `node app.js`.