Java API: basic POJO generation

+Gson integration and gradle tasks