Support for --depth flag to repo init.

This allows checking out a shallow clone with reduced history.