added initial version of repo-core, tests still to go.. blame me