Add UDP/TCP connectivity tests.

@andresusanopinto @pthatcherg PTAL
Here and elsewhere, use '' for string instead of "" (http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml#Strings)