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

Also added tests for listener.

Fixes #207