Refactored JAXB for better compatibility with fcrepo3, added more XML tests for fcrepo-legacy-api