CSV generation, access control, and logging out.

(I'm currently only simulating login.)