feature custom root in the constructor
feature custom root in the constructor

This PR allow to setup a custom root in the constructor file.
This is necessary for local development because, for example on windows:
Suppose to execute a requesto from:
127.0.0.1/prefix-api/query/123


$dir = dirname(str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME']));

$dir now will be for exemple:
C:/dev/api/query/123

The preg_replace in "getPath" function will fail and the path will remain the same.
The "findUrl" function will try to compare:
query/123 with C:/dev/api/query/123
and obviusly it will fail catching always 404 Error
jacwright/RestServer