Add repository management based on PR #121

- Added new define
- Updated readme
- Added spec tests
Fix config file location

Reported on IRC that the location of the config file was wrong.