BUG/ENH: Fix template rendering logic

Some templates had an inconsistent logic going on, specifically the FAQ
website, would show the login text boxes even if you were logged in,
giving the impression that you had been logged out. A similar thing
happened in the home page i. e. every time you went to the home page you
would be prompted to enter your kit id and password, eventhough your
credentials were still alive. The new behaviour will redirect you to
/authed/portal/ if you have credentials and will show you the loggin
site otherwise.

Fixes #248
Merge pull request #271 from ElDeveloper/issue-248

BUG/ENH: Fix template rendering logic