stream transformation added

JSON communication via stream is now made easier with helper methods transformStream and writeJSON (yeah, naming should probably be discussed..) - transformStream takes the socket stream consisting of List<int> and transforms it into a stream of single decoded JSON messages. Method writeJSON takes socket and string and writes a message to given socket in a way that it can be transformed by transformStream. In order to use transformStream, data received in that stream has to be written using writeJSON.