userbar on the main page

+ refactor because we now have the userbar in two places, both templated views.