Improve the compose API, make it testable + misc cleanup
Test BCC behavior in mailpile-test.py, fix related buglets