Implement URLPath mode

Now, it's time for some refactoring...