Nightmare session, some progress made

Got completely stuck for some strange reasons on a bunch of little
things, spent 3.5 hours trying to wrestle with some pretty basic stuff.

Have now managed to get a prototype working for replacing out gifs with
webm & mp4 + gif fallback. Current issue is chat div scrolling. Still
haven't quite got the callback issue sorted.

Gaarrggh. Hard session for sure.