Split off functions for ease-of-use in stub files
Split off send functionality as stub, and included within compose page