Invalidate and regenerate in a transaction.
Fix untapped get_user_settings.
Cleanup.
Update templates.

Part of 241c992.
Fix template.
Update template.
Don't allow empty passwords.

Closes #255.
Save server version on upgrade.
v0.9.24