Made Mailpile.acitivies.compose() and replaced duplicate calls to API