ENH: Reworked __resource_functions
ENH: Reworked __resource_functions

Added support for .gz and .xz supplied files for both local and remote
files.

Checks to see if resource was copied corrected.

Changed variable names for clarity.

chyves/chyves