fix TCP chrome.socket.read behavior for reads smaller than the requested read size
https://github.com/MobileChromeApps/mobile-chrome-apps/issues/64
allow chrome.socket.read for connected UDP socket
Merge pull request #41 from kzahel/master

chrome.socket.read behavior fixes