Added logout button to public download / upload

For public downloads and uploads with password, there is now a button to logout and destroy the session.
Fixes #5419