Add lzma encoding support via the 'xz' plugin

We did, it was based on that branch.