Bug 901926 - [Email] Email app stops working if attachment contains an IMAP literal

Additional fixes and test thoroughness on mcav's patch.  Mainly:

- Handle \r\n embedded in the literal, not just \n.

- Have the unit test have assertions on the data logged to validate the parse
  logic is working enough to break things along correct boundaries.
remove unused argument and logs