Use JSON for serialization

This PR changes the serialization method of libretalk from Java's built-in binary serialization to JSON using the Gson library.