Refactor type 2 message decoding, drop any extra lines from subject.
This allows other clients to insert headers in extra lines of text between
the Subject and Body fields of the message, as discussed on the 24x7 mailing
list. The PyBitmessage client was never able to meaningfully display
multi-line subjects, so this does not break anything. The extra lines are
thrown away and never stored anywhere, so this also protects against
watermarking attacks.
Merge pull request #295 from grbitmsg/single_line_subject

Refactor type 2 message decoding, drop any extra lines from subject.
Added check for logger global before attempting to log in places where logging may occur before the logger is ready
Added fall back print statements in case logger is unavailable
Merge pull request #302 from DivineOmega/fix_missing_logger

Fix missing logger
Move one line of code so that correct program activity is logged