Add first version of the API

This version allows users to:

- Log-in
- Add corpus
- List corpora
- Add documents to a corpus

It's what we need now for importing several documents in batch. I'll create some issues about new features so we can track the development.