Pass input stream from socket directly to simple framework

Also adding some test data for the V2 protocol

#7 #1