Refactors the discussion main method
Refactors the discussion main method

Since we need to handle both verification and adding sign/encrypt
buttons on the discussion page, the verify handling had to be cut out of
the main discussion method.

ralt/erinome