Add poll() function to allow poking at MPI when idle.

Switch to blocking gradient sends until I figure out bugginess.