complete login manager

Including login and logout, list/add/modify/delete user.