Initial implementation of the repository tools.

Delegations and repository loading now implemented.  Updates to comments, docstrings, and a unit test needed.