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.
" 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." Yeah, I could see that becoming a problem in the future where we guide users based on data filled but if it works now I will merge.