Refactor building a project tree by moving the logic into a separate
file (tree.go), and cleaning it up. Add some unit tests for building
the tree and some unit test data. Fix up the affected projects_test.go
since we added a new project that changed the expected counts in the
unit tests. Put this count check into a constant.