tx i18n pull
Fix def. namespaces in EAD breaking import #7280

- Apparently DOMXPath objects require prefixes on *all* namespaces
  when querying with XPath if they are defined, even if it's a
  default namespace. (e.g. xmlns="..." instead of xmlns:xsi="...")

- You need to create a dummy prefix for default namespaces when you
  register the namespace, see: http://stackoverflow.com/a/6475568 at
  the end of the top answer.

- You cannot remove default namespaces using DOMElement or DOMDocument

The solution I came to is instead of passing $doc->load($filename),
we read in the filename with file_get_contents, remove the default
namespace from the <ead...> tag using regex, then call $doc->loadXML(...)
on the resulting string instead. Since load() was reading the file in
anyway, this performance hit shouldn't be bad.

I also set preg_replace's option to only replace *1* occurrence,
so it should stop parsing the string after only the first few lines.

I felt this was the best solution that while a bit dirty, didn't
hurt performance and made AtoM so it doesn't break on all those
sites that were using the broken 2.0.2 EAD export.
Fix version_compare in build
Added ability to bulk export in MODS format.

Added the ability to select export format with the bulk export tool
(either "ead" or "mods").
Fixed minor issues in MODS XML export template.
Added parent relatedItem to MODS template.
Added/revise fields in the MODS XML template.
Added access rights to MODS template.

Added support for indicating if access rights exist, fixed a bug in the
MODS template, and added rights-related helpered to MODS export class.
Added replicate rights to MODS template.

Added support for indicating if replication restrictions exist in
MODS export.
Added alphanumeric notes to MODS export.

Refactored and add the RAD alphanumeric designations note to MODS
export.
Added CLI arg for site URL to EAD bulk export.

CLI tasks have no knowledge of hostname, etc., so can't automatically
generate a full base URL for exported XML. Added a CLI arg to the
EAD bulk export tool to specify a URL. Integrated this into the existing
EAD template.
Base URL now optional, change EAD identifier
The EAD identifier attribute in <eadid> now uses the top
level information object's slug instead of url_to().
Added site base URL configuration parameter.

Added a site base URL configuration parameter (to both the
settings page and the purge task).

Added URI identifier to MODS export.
Changed order of MODS export repository fields.
Changed MODS bulk export so children export.

Changed the query for information object so if an export's format is
MODS, and the current level only option isn't flagged, child
descriptions are exported in addition to top-level descriptions.

Removed typo in MOD XML template and changed template so publication status
doesn't get shown in title of parents/children.
Added XML tidying to bulk export.
Added display of total descriptions exported.
Fixed issues with MODS export of digital objects.

Fixed issues with digital object paths in MODS export.
Fixed issue with CLI bulk export breaking perms.

Fixed an issue with the CLI bulk export that caused permissions
not to work.
Fixed issue with EAD export digital object URLs.