Show login/logout based on user status

Reload page after logout
Delete trailing whitespace
Fix karma task

Run npm install after update