file_path_to_url enhancements

Modified the ``preg_replace`` function in ``app/helpers.inc.php``'s ``file_path_to_url`` Regular Expression so that the RegEx matching is improved and more flexible.