Add functionality required for deploying pasteup via magenta

 - More flexible cache-control settings based on pattern matching of key name
 - Ability to lookup target bucket via a specified resource