Refactor/path

URL class and related cleanups/refactorings