Add basic API
fix authentication
Finish API work. Update requirements.txt.