Flexible controllers for express.js apps