Cleanup middleware config opts

Rename `config.config` to `config.params`, as that better describes the purpose of the property, which is to pass arguments to the middleware factory function.

Improve jsdoc comments.

/to @ritch please review
/cc @raymondfeng