WebPath: full algo, no unit test yet.
WebPath: Prepare unit tests.