Add a custom entityResolver to prevent the EAD DTD from being downloaded.

Unsurprisingly, this dramatically speeds up importing.
Whitespace cleanup
Whitespace cleanup
Logic clarification