Include the request object in the returned dict

By including the ```request``` object in the returned dict we make it possible to cache information that will be used later in the process. This, however, prevents the dict from being serialised to json.