chrome.socket.read behavior fixes

- fix TCP chrome.socket.read behavior for reads smaller than requested read size
- fix UDP chrome.socket.read should be allowed for connected socket

https://github.com/MobileChromeApps/mobile-chrome-apps/issues/64
https://github.com/MobileChromeApps/mobile-chrome-apps/issues/67