Added fully working repo support and automatic adding of default repo.
Start on error reporting code.
Full GUI support for adding and removing repositories added. [...]

Other changes:
* Repositories now also save to file correctly.
* Other minor changes.