Shared Node.js Express middleware.