Modify TarFile signature to accept an options object.  Add general extract function which determines action based upon the file extension.