upgrade jersey to 2.13, change corresponding APIs, classes, etc

Yeah, I thought there's no way so came up with this class, turned out there is a simpler approach! Done in 0f8a1ad.