Boggart middleware can be used as a factory function for JSGI middleware.

Resolves Issue #74