Moved a lot of classes from jaxrs to core.