Move HTML output from compose.php to templates. Also fixes broken send functionality...