Attachment gif support

Support for GIF files in attachment uploads

https://www.pivotaltracker.com/story/show/60177348


Same as https://github.com/alphagov/whitehall/pull/1009, but branched from this repo so we can get the greenlight from travis.