Hamiltonian theory of gaps, masses, and polarization in quantum Hall states