- added logger
- added some log messages
- don't drop the cursor when has_more=false, otherwise we keep re-indexing the same files over and over again
- added some debug messages (I want to see what the cursor value is)
- return/store the correct cursor, or we'll re-index the same files over and over
Merge pull request #3 from raff/master

Correctly save/retrieve cursor