Added logging of HTTP messages
Fixed sending of an editing header