simplify
remove some more bug_get_field calls
use email_generic
fix variable naming
1) Move email_send_all calls out of individual functions into email_store. This fixes issue where some paths to store email did not call email_send_all

2) Add call to html_end to call email_send_all - with a call to fasctcgi_finish_request if appropriate to improve user responsivness if not using the email cron job functionality.
Remove remaining references to wingraphviz