Merge branch 'root/master'
regAsync should return the same data structure as loginAsync
Reject when error not equal 0
Remove error code check in `checkUsernameAsync`
Update test case
Merge pull request #12 from netputer/master

Update