Update IDE files.
Refactor setting of latestHead/latestBranch flags.