Add middleware, templates, and docs.