Make network logging toggleable.

Switch back to mpi-1.7.

Move options to common/c++ code.

Move cifar params.