Initialize repositories and repoHeads in loadPage()