Spin quearl_inst.py off localize.py

Refactor the non-l10n-specific code to be reusable, and move it to a
separate file so it can be pulled in by other scripts.