Javascript, gui changes.
Updating the email class it references config fields that have changed.

I rearranged the way that the config fields are ordered. I got rid of the 'header' field, so that mail settings just fall under the 'mail' field. This file references the 'header' field, so it had to be changed.