Some cleanup of the meta-data parsers.

- Inlined some more Ivy XML parsing and handling
- Added some unit test coverage for error handling
Fixed meta-data parsers so they close the local resource when finished parsing.
Removed unused field.
Javadoc.