implemented all groundwork for resource validation
TODO note to remove OAI-PMH envelope shell