API init
First API definition
Update api.md
Add login component.