normalizeAndRelativize

Remove all redundant . and .. path elements. Leading .. are also considered redundant.