Adding support for Express 4.x app.locals. It's no longer a function. Still problems to fix with the route handling.