Use state map in Connection
Add basic pubsub
Overhaul to better handle edge cases, still not handling responses that have newlines