Refactoring to make better use of the Request and Response objects in Aura.Web.