added beforeRequestInterceptors to allow modifying resource instance bef...

I have created a beforeRequestInterceptors hook to allow similar injection approach on afterResponse so that we could utilise this to add custom state control to the resource instance