Move agent block to the top by manipulating XML

This fixes most cases of changing checksums, but not all of them
Make Resource Map XML reliably ordered by sorting elements
Clean up - use existing logger, remove unused imports
Merge pull request #75 from datadryad/trello-9-dataonemn

Improve reproducibility of Resource Map XML generation in DataOne MN API