Fix slave MapPhase

Slave was sending IDLE as soon as it started mapping instead of
sending just at the end of it. It was also dead-locked because
it didn't close the data pool before waiting for mappers to finish.
Fix slave ReducePhase

Slave wasn't collecting the results asynchronously, so it was locking
the message responder thread. Also improved logging.