Move config file parsing to the RepositoryHandler.

This will allow the repository handler to re-configure itself to detect
changes in the config - for instance if the polygamy repository gets
updated.