Update 3 Dec 2014.
Keepalive and header fixed. Browser headers respected (I think). Protection against invalid GET requests. Need to add code to remove clients that are no longer active.