Remove ehttp module and add its logic to protocol module