Added .tar/.tar.gz support to package fetch

Amended version of my previous pull request, adding tar support to the package fetch.

There was a discussion on the previous pull request about further abstracting the decompression handing of the plugin to make adding new types easier and cleaner in the future.

If you have time to try this out I'd appreciate it.

Thanks.