[legacyRender] fix #100 Cool URI expand

- support XOOPS_ROOT_PATH is not server document root
- more flexible
- support PATH_INFO
Merge branch 'coolurl_rule' into pilot
[CorePack] pilot version 20140303.140306