Tweaks to the multipage logic

Adding support for finishisdone option when the final page of the screen
has conditions and the conditions are not met, so we need to skip the
thank you page.  Also, passing $owner to the templates so we can use it
there for checking things.