break apart the profile factory from nsProfile.cpp and put it into nsProfileFactory.cpp also, apply dp's patch to use nsIModule. r=sspitzer git-svn-id: svn://10.0.0.236/trunk@49809 18797224-902f-48f8-a5cc-f745e15eee43