Refactor the project-loading logic.

Now loading projects from ldap is in its own function.

I also added a special command-line switch to test loading
of projects.  This is for dev use.

Change-Id: Ie8595e19833c3b57adb4f8e922d576340216a504
Update get_projects so that it also enumerates service groups.

Change-Id: If69df3a5cffa43a14c0f00531cd289a284806561