Support XZ compression

This implements #556, supporting XZ compression and using the commons-compress library for all our compression.