Added basic repository caching.

I added basic repository caching, by using the --cache-directory <path>

This is a fix for #7