Middleware

Second attempt at a middleware handler for crow.