CMS-3558 Use Resteasy instead of Jersey. Cleaned so that we use less jersey specific code.