Rewrite headers and cookies handling in HttpInterface. Fix #3