added redirect function for peer. fixing #9
redirect: not tested. fixing #9
Added redirect and check user status feature in msgcenter. fixing #9