Hamiltonian four-field model for magnetic reconnection: nonlinear dynamics and extension to three dimensions with externally applied fields