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.
We set this in the action now, as opposed to the form?