add client program

1. add client program to operate "register" and "redeem" to the server
2. modify file structure