emails: Allow specifying how deep to recurse

Previously, the mail parsing and fetching system would recurse unbounded
searching for bodies by content-type
emails: Mail_Parse detects bounce emails
Ticket thread supports specifying `thread-type`

This allows the email system to detect something like a bounce mail and
specify that the associated message should be an internal note.
emails: Add bounce detection for mail fetching
Remove bit-rotted code
Add Return-Path header for outbound SMTP mail
Merge pull request #461 from greezybacon/feature/handle-bounce-mails

Handle email bounce notifications

Reviewed-By: Peter Rotich <peter@osticket.com>