added new endpoints for ismaster and isslave, retired getmaster endpoint

also removed JaxRsResponse.getEntity(Class) as it is redundant