mod/quizport move several utility functions from child classes to parent 'quizport_file' class