JSON deserialization

Added library to deserialize (PubSub result) JSONs into a strongly typed POJO.
Fixed a few small issues of prev commits.