Periodically update CSRF token.
Revert "Periodically update CSRF token."

This reverts commit 3269290d191b249046721783ffb7abb26d836a6e.
Revert "Revert "Periodically update CSRF token.""

This reverts commit 0b372ead644db0fb51aad010703824671d2437a2.