Fixed ::write(buf, len) so it properly manages the ERR_MEM condition as a flow-control signal of sorts.  Also incorporated issue #389's fix.
Merge pull request #447 from energia/issue_447

EthernetClient::write truncates with large writes