MOD:seperate valid users and register users, nomalize error code, add
iafterLogin, ibeforeLogout interface for users controller
MOD:complete users controller, add sms invitation support in people
controller
MOD:code review, normalize interface function for response and err, and
extract some private function for common use