Quantum dynamics without the wavefunction