Start adding support for multiple repositories.
Some refactoring.
It kinda works... whoa.