Add LoadProject, some other fixes and cleanup.