Fix url matching in eac:{resource,function} refs #6660

Similar fix in bf1c01728c44ef7ffade8593607fc75aa11eb401.
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
Fix digital asset URLs in EAD <dao> tags #7282
Ensure i18n keys are filled correctly, refs #7322

Squashed commit of the following:

commit 38a97e484410796d279f3d99797958b8df9ea29d
Author: Mike Gale <mikeg@artefactual.com>
Date:   Tue Sep 30 15:34:27 2014 -0700

    Ensure i18n keys are filled correctly ref #7322

commit fe1f95bcddf2cfc3eb0a5d5b695908341e8354cf
Author: Jesús García Crespo <jesus@sevein.com>
Date:   Tue Sep 30 13:25:42 2014 -0700

    Add test for #7322

    Run: php symfony test:unit issue7322
Merge branch 'upstream-stable-up-to-a40326c' into mea