Use Apache HTTPClient for EventLogging

Using different HTTP implementations in different parts of the code
is asking for trouble
Single squashed commit for converting master into beta