Added underscore as dependency, ported to coffeescript, added url_for and pattern to app.locals and res.locals