Project type GUID can now appear in project file

MonoDevelop refused to load a project that had its project type guid specified inside the project file's <ProjectTypeGuids> element.
Some additional cleanup/refactoring.