switch to sockets.tcp for the socket provider

Tested with 'grunt integration', which verifies that basic tcp functionality works.
Note that manifests of chrome apps using this version will need to change per https://developer.chrome.com/apps/app_network
Add comment to explain the inputs, and what this function does.