Shallow and remotes

A couple of features that we needed with @glencoesoftware in order to work with private repositories and partial @openmicroscopy workflows.

/cc @knabar