Role of impurity dynamics in resistivity-gradient-driven turbulence and tokamak edge plasma phenomena