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.
In guided mode it won't be a problem. More that we will need to define a different way to decide the next page. My fear is if we remove a page or disable a page based on something like sponsor code(S2S Search), that we won't be able to determine which is the next page when the previous page renders.

The guided style just means we need an alternative flow that the next and previous buttons will have to follow. Still could be tricky...will keep thinking about it.