Spectral curves, algebraically completely integrable Hamiltonian systems, and moduli of bundles