Finish redis auth

re-commit @shxsun's code.  recover previous formation convinient for merge.