Add run command.
Major refactoring:

- Use promises to collect several calls
- Use limit=0 to get all entries