[PR] Add HTML5 support for galleries and captions to parent theme

Fixes #87 and a few other things.