Add script to symlink dir for static
files to arbitrary location
Replace ENV vars in settings (experimental)
update propel to 1.7.1
More readable code for environment autodetection

Also prints an error if autodetection yields production
Make URLs work with PATH_INFO as well as rewriting

PATH_INFO URLs are structured as follows CONTEXT/index.php/PATH whereas rewritten URLs are CONTEXT/PATH.

There is a new constant, MAIN_DIR_FE_PHP. In rewritten setups, it will point to the FE location of CONTEXT,
in the PATH_INFO case, it will point to CONTEXT/index.php/.

Use MAIN_DIR_FE_PHP for every path that goes through rapila (all managers) and MAIN_DIR_FE for paths that don’t (resources in web dir, for example).
Fix wrong order of includes
Sometimes $_ENV is not defined. Use $_SERVER
Some cgis expose CONTENT_TYPE as HTTP_CONTENT_TYPE
Add fine grained controls over absolute links
Merge commit 'ba610f7'

* commit 'ba610f7':
  Add fine grained controls over absolute links
  Some cgis expose CONTENT_TYPE as HTTP_CONTENT_TYPE
  Sometimes $_ENV is not defined. Use $_SERVER
  Fix wrong order of includes
  Make URLs work with PATH_INFO as well as rewriting
  More readable code for environment autodetection
  update propel to 1.7.1
  Replace ENV vars in settings (experimental)
  Add script to symlink dir for static files to arbitrary location

Conflicts:
	lib/classes/ErrorHandler.php
	lib/classes/Settings.php
Values in $_SERVER can apparently be arrays