Refactor debug buttons, add turn-in-letters button (and css)

@chezeric I tried not to mangle the css too badly.