KRACOEUS-7408 : Fix back and continue links

The back and continue links don't work correctly for 2 reasons.

* It causes NPEs due to the addition of custom action links for custom data.
* They didn't refresh with the page meaning their rendering or not were often out of date.

This fixes both issues by moving the links out of document footer into the page footer and using finalizeMethodToCall to build the links and the correct navigateToPageIds.
Yeah. Before I was relying on the methodToCall to decide what page to navigate too. Due to the lifecycle problems and the dynamic actions, that doesn't really make sense anymore. Instead at the end of the lifecycle, before the page is rendered, I set the page it should navigate too on the action link itself. This could become problematic if the set of pages changes based on data from the last action. Not sure what we will do if that happens, but right now that isn't an issue.