Brought git API across to new system, finished up port of core.ctcp