Added general middleware purpose for caching policy
Update error middleware to show stack trace
Update, only swig views, debug messages and middlewares receive config

After I found an non npm update issue in `consolidate.js` for more than
one year (https://github.com/tj/consolidate.js/pull/134) I decided to
use `swig` straightway. I also added `debug` for the sake of the console
logging, added a new general use scaffolding middleware and passing
configuration object to middlewares initialiser to be consistent with
the dependency injection policy that I use.
Express has been update to the last current production version