Cleanup TCP server code for CC3000
Minor fixes and cleanup

- Move cast to uint8_t to return statement
- Fix bytes send count in write function
Add UDP support for CC3000
Cleanup WiFi CC3000 examples
Merge branch 'master' of https://github.com/energia/Energia
Remove UDP code from WiFi.h and move to WiFiUdp.h
Add code to set socket timeout to infinity