A DSL for creating middleware (ie Lua closures/functions.)