Automatic switching between BVP and IVP modes.

When boundary conditions get changed to initial conditions (and
vice versa), the GUI goes into the correct mode.