Add the ability to modify or create repos

If a repo is specified that does not exist, and the minimum configuration for a repo is not given, a new file will be created with the repo in it.

Pa-pow.