Add support for localization bundles

Hopefully this is pretty clean -- I had to hand-copy some of the diff on top of the current release, as the original was done in our copy XUPorter, which was dropped directly into our own repo.