riemann: Allow setting the connection type

Either type(udp) or type(tcp) (or the same, but with strings) is
accepted, and sets the connection type accordingly. The default remains
TCP.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>