Add global to reset the logout interval.
Simplify login logic
Enable CSP and clean up a bit.