accept uri consistent with RFC (ws://). more refactoring/optimizing of thread locking. moved incoming data during a read to the heap. more overall clean up.