Tune loading of project directories

This doesn't have a big impact on the overall time but does leave the app more responsive.

I'm thinking of lazy loading the tree elements next, let me know if that is a bad idea.