Added tar archive extract class

Added a tar archive extract class with many features. This class
will be used for plugin installations and so on.