Set CSRF header for ajax requests via a beforeSend setting. This allows us to check if the request is a link or button that is submitting a form - if it is we use that token otherwise use the one at the top of the page.
Update comment attachments controller to respond to html in the same way as json. IE 8 & 9 make the comment_attachment (file upload) request as type ‘html’ rather than json.
IE8 needs an implementation of JSON for amplify.store to work.
Merge branch 'reggov_update' of github.com:criticaljuncture/my_fr2 into reggov_update