Refactored the OAI-PMH implementation out of the core.