Factor printjob-specific logic out of preselection viewmodel

This doesn't yet completely work because of the weird way in which the
bootstrap modal dialogs are triggered.