Fix buglink plugin, which crashed when enabled. Close #364.

Factor up source_page() and menu_on() to global test harness.