Fix a lot of problems in the parse function

Since it's confusing dealing with both `advanced` and... let's say `traditional` links, I've split the handling of each into separate functions. Also there's a lot of other little changes. 
Yeah but what I mean is, why are we even here if we don't have a menu item? How did we get here? What kind of URL references no menu item but gets us to the router?