Now converting mp4 + webm + saving gif

Next step is to find the message, both in the browser and in the
database, and swap-out the <img tag for a <video tag that includes
autoplay & loop as default, alongside both mp4 & webm as the first
choices with a .gif file as a fallback if neither are supported.