Make get_repo_data public

This also allows the use of __context__ to reduce the amount of times
that the file containing the cached repo data needs to be read.