fixes undefined variable
adds the form for sending emails
javascript to handle changes to yes/no value of "send emails"
adds very rudimentary functionality to send emails on survey completion
removed some debugging
sending emails on survey completion fully functional though still very rudimentary.
a bit of housecleaning - removed some unused methods
added some comments
I hope the method `is_existing_name` wasn't being used because I remove the whole thing o.O
JavaScript toggling in email settings form working much gooder!
working on allowing HTML in thank you message
improving notification emails
minimized js/css