Proposal: Importfile which works a bit like Gemfile:
#!/usr/bin/env import
# The URL is downloaded once, cached forever, and then sourced
import "https://git.io/fAWiz"
And then calling import install would download&cache files. This would be great for docker builds.