Build up the systematic frame of API.

Signed-off-by: johnmave126 <johnmave126@gmail.com>
Add LoginAPI.

Signed-off-by: johnmave126 <johnmave126@gmail.com>