Add sign in and sign out pages to headbar, add a header layout partial, fix some syntactically wrong code.