beforeRequestInterceptors

I have added a beforeRequestInterceptors to allow modifying the resource object before it proceed to request. The same instance object is passed to allow modification of state that could trigger UI changes.