Switch to Swig for templates. Fix gallery editor.

Since layouts aren't supported by Express any more, switch to Swig for template
rendering, and create a base 'layout' file that all gallery pages use.

Also fix CSS for the gallery editor, which was broken since the update to the
fancy new gallery page.