make the library dependent on the jaxrs API only, and import resteasy for tests only

Also consolidate test dependencies together