Simplify duplicate code in download/content methods
Simplify duplicate code in download/content methods

The download/content method shares a lot of code after the recent
changes. This update consolidates those similarities.

crayfishx/puppet-archive