Reworked to support BOTH http client and http server functionality at essentially the same time.
*  whenever it needs to be a client, it stops being a server for a moment while it does it, then goes back
* So, if you visit http://your.ip.address/   you can now UNLOCK/LOCK the door remotely with just a web browser!.
* Code is tested and works well.
* a bunch of whitespace cleanups
* further code cleanups in next commit.
remove old functionality.   replaced by send_to_server2() function.