Specify graphite output protocol (tcp or udp)

This pull request allows users to specify udp instead of tcp when using the graphite output option. I've tried to copy the style of the rest of the code. Have tested on a couple of boxes and it works for both tcp and udp connections.

We use udp almost extensively as this scales a bit better.