Add generics support on RestTemplate methods

We still need to import Jackson, but this commit will allow developer to define rest method returning generics like List<String>, Map<String, String>, and so on.