Second pass at langpack action

refactor tarball action functions for reuse
handle special case files (borrowed from mozilla-l10n)