Cross-origin middleware--tests fail due to being unable to mock http\Env\Response, add docs generation