Add support for logging over TCP

Rename LogstashHandler to TCPLogstashHandler, make it subclass
directly from logging.SocketHandler, and create a subclass,
UDPLogstashHandler, that inherits from DatagramHandler.

Also add LogstashHandler as an alias for UDPLogstashHandler for
backward compatibility.