Finish redis auth

re-commit @shxsun's code.  recover previous formation convinient for merge.
Merge pull request #21 from kenshinx/patch-auth

Finish redis auth