Added scale to category/locale index maps.
Fix several test failures triggered by the stricter Test::HTML::Content (et al) found in current Debian unstable.
Work around a "No such method textContent" bug in
Test::HTML::Content when XML::LibXML is not installed (and update
previous Change entry)
Respect destdir when installing scripts, templates, etc
Use mkpath to create the custom template directory rather than mkdir, for cases where the parent directory doesn't already exist
Respect destdir when initialising database; also protect against undefined warnings when destdir is not set