Refactor asset sizing handling (#807).

Fairly major refactoring of how we handle JS-powered asset sizing
in viewer and builder.

- Move towards unifying resizing logic
- Figure containers collapse to small images
- Large images expand to figure container responsively
- Iframe-sandboxed asset behavior unchanged
- Note: re-added imagesLoaded jQuery plugin