Convert samples to use chrome.sockets APIs available in Chrome 33