Japan eyes language, manners training as factor in residency permits