Scala wrapper on java sockets implementing very simple text/json network protocol