a bunch of fixes for mailing, jquery, and proposal mechanism