Add mpi

Adds MPI ability so that all ROOT I/O for write happens in a separate MPI process where everything is serialized.

This unfortunately undoes some recent changes.