Add udp support

Closes #33.