EHN: manageSubProject.php optimization

Use a php array object to cache all subproject objects, make sure
we only query db once for every subproject.