more implementation for serialising and regenerating repository refs

both repository manager and repository references should be able to be
regenerated from the management repository now, which should now be the
only static repository reference for the system