Cleaned up the code for creating a rendering context from the request, response and next triplet
Upped version