Simplify code of middleware__page-meta and middleware__page-title modules
Add part of middleware documentation