Rewrote Response class in test-driven style, removed obsolete classes. Moved incoming message reading logic to a separate class.