WL-2777 Redirects should work when site ids match.

The problem was that when the first part of a hierarchy URL matched a site ID the redirect node never got a chance. We've changed this now so that it only tries site ID if there isn't any extra part to the path.
Trim training whitespace.
WL-2777 Fix for wrong node being passed to redirect.
Formatting tidyup.
WL-2777 Add note about why we look at the parts remaining.
Merge pull request #4 from ox-it/WL-2777

WL-2777 Fix site ID lookup happening be redirect search.