Automatically detect base in config.
Get full url instead of relative file path - this complicates things a bit.
Calculate base in a separate function
remove commas
dirname() works directly on  $_S[ 'SCRIPT_NAME' ]
Refactor code to improve readability
Merge pull request #227 from bugos/remove_base_config

Remove base from config