Fix possible error on ajax request
Validate e-mail address in new_user_dialog (#1486498), use AJAX for form submission,
don't reload the page after successful form submission
Fix format=flowed text re-wrapping for display
Simplify format=flowed handling code, don't duplicate same code