RESTWS-562 Talk Thread - Adding support for datatypes

FYI a problem you may run into is that the actual behavior of the REST API is poorly documented and a bit inconsistent. E.g. see this: org.openmrs.module.webservices.rest.web.response.ConversionException: patient on class org.openmrs.Encounter