relay: add support for sending metrics over UDP sockets

For certain cases it may be useful to send metrics using UDP.  This
allows to specify that servers accept UDP connections.  Note that this
commit does prepare, but not implement the relay itself to be able to
receive UDP connections, since this needs more work on the code.