add logout button, role-based player apis
merge with origin