Add examples for interactive use of MPI.

Closes #2934.
Merge pull request #3616 from fperez/interactive-mpi

Add examples for interactive use of MPI.