HG-367: Working version of new url parsing;

Major refactoring of the URL parsing method, moved from RegExp to array based processing.
This PR should solve #9 and the case is added to the test case.
urlSegments.filter((segment) => segment !== 'thumb')