Correct logic relating to parent ids in ARCH_LIB_ARCHETYPE
Move REPOSITORY_DIALOG files to own directory; add 'checkout branch' capability.