Big changes

Server code now uses Async then passes to request handler.
Client now uses an object that can be imported into any client software.