NX-620: Support for offsite tarballs

Added support for offsite tarballs, some bugfixes
and refactored the plugin to use more sane
packages.