Added functions to get roles, register roles permissions, register role and save roles