Http interceptor

This is continuation of work performed in #8