Add interceptors

Add an interceptor before the request and if the request is complete
Merge pull request #2 from fritze/patch-1

Add interceptors