[WIP] Add repository manager

int