Fix regression introduced in cf745d87a. Fixes #504.

Buttons that had previously been anchors were changed to button
tags. That caused them to trigger the form actions, resulting is page
reloads.

Since forms are mostly stylistic, we've moved the buttons outside of
them.