Refactor MPI processing into a class
Refactor MPI processing into a class

Split sequential/master/process code into multiple functions, also split
out wait until ready code. Make use of member variables.

This makes the indentation much less winding, and the code less
spaghetti-like.

timvandermeij/sentiment-analysis,timvandermeij/sentiment-analysis