Mailpile integration - in progress

I'm making a pull request for your work! 

This is an open PR for @JoshData's ongoing Mailpile integration. Let's discuss how it's going as it's going, so the group can help out and test.