Move serialize/deserialize json to use google gson library, and remove abandoned code