*8664* Prepare core to handle with URL override case

This change was needed so the stats loader task could retrieve correct context path, page and operation in cases where the url in overriden. It shouldn't change anything for the page router, the unit tests are still running ok.