Some frontend refsactoring
some admin code refactoring
added login/logout menu
added login/logout views ( need a test )