Redirect to the course list on logout

This is a potential fix for issue #279, will need furher testing though.
Fixed a bug where entries always were visible

Due to JS' lovely comparsion operators it turns out that visibility ? 1
: 0 always evaluated to 1 since "0" is true for some reason.

So much for (a=b) && (b=c) -> a = c.