Download and optionally extract files