Added eof method so the mapper knows whether it has something to give or not, and fixed a call bug
mapper logic and flow control has been reorganized and simplified
Some methods have been renamed, to be inline with new flow control
Renamed some methods in order to put the class inline with latest mapper reorganization
Changed used Search::Elasticsearch bulk API, as the previous one did not work at all