Improvements to socket message handling and new echo server test scripts.