Added some more tests
Added public path to default configurations.
Removing lgs
Better regexp to public directory. Added tests to it.
Improved tests
URL class rerwitten