Added format support to dialogue_generate_summary_line

Fixes troywilliams/moodle-mod_dialogue#33