updated index define checks

git-svn-id: http://prositemanager.googlecode.com/svn/trunk@63 e374cdb8-7ee8-0d77-fd1e-c554042f9154
moved INDEX_FILE define into \psm\ namespace
  leaving DIR_SEP and others at root namespace
changed AutoLoad() function to factory() - rewrote this function
  added $args array for portal arguments
  moved code out of constructor
added getLocalPath() and getWebPath() functions to Portal class
moved Page class into Portal sub-namespace
  added Module and Module_Loader classes

git-svn-id: http://prositemanager.googlecode.com/svn/trunk@64 e374cdb8-7ee8-0d77-fd1e-c554042f9154