[ticket/207] Add links to portal in header and footer

Also added tests for listener.
[ticket/207] Use different template var for redirect and fix portal link
[ticket/207] Remove unneeded method parameter in add_portal_link
Merge pull request #319 from marc1706/ticket/207

[ticket/207] Add links to portal in header and footer