BZ1081776

Added resteasy.document.expand.entity.references as context parameter and upgraded resteasy. Also changed to keep the required json.jar in the lib folder when resteasy jars are not used in the war.