yahoo/mojito — pull request #1342 by caridy (2014-02-19 19:59:23+00:00)
Title: removing the ability to customize default middleware functions

`libmojito.middleware()` will not longer take in consideration the `middleware` `array` defined in `application.json`, instead, developer will have to define their own middleware manually thru `app.use()`.

this is the result of the discussion in https://github.com/yahoo/mojito/issues/1320#issuecomment-35456242

official docs:
----------------

By default, Mojito does not add its built-in middleware, in case the
application would like to need customization. Users have to explicity
request Mojito to add them.

```js
app.use(libmojito.middleware());
```

The most common usage is:

```js
var express = require('express'),
libmojito = require('mojito'),
app;

app = express();
libmojito.extend(app);
app.use(libmojito.middleware());
```

But if you want to have more control over the middleware that you want
to put in place, you could dome something like this:

```js
var express = require('express'),
libmojito = require('mojito'),
app;

app = express();
libmojito.extend(app);
app.use(myCustomMiddleware());
app.use(libmojito.middleware['mojito-handler-static']());
app.use(libmojito.middleware['mojito-parser-body']());
app.use(libmojito.middleware['mojito-parser-cookies']());
app.use(libmojito.middleware['mojito-contextualizer']());
app.use(myCustomContextualizerMiddleware());
app.use(libmojito.middleware['mojito-handler-tunnel']());
app.use(anotherCustomMiddleware());
```