check for more than 4 open sockets
close socket on no wifi
trying to force buffer clear
now freeing buffers
longer timeout for opening socket
cleaning up

wrapping debug statements

removing extra select calls
swap to UNIX errors
track on tcp accept
Merge #82 r=@jiahuang: CC3000 free buffers

goes with https://github.com/tessel/runtime/pull/475

* makes socket send blocking when the CC3k is out of internal buffers.
* keeps track of number of open/closed sockets. throws error on > 4