Picojson: small changes to library. Rely on picojson exceptions to simplify PacketStream parsing code.
PacketStream: Fix tag logic a little. Introduce Lock/Release for reading stream.