Added a resource class which should collect all the information about the current request before doing anything else