builds admin-link (not yet hooked up).
connects login/logout to template.