Quasiperiodic Perturbations of Two-Dimensional Hamiltonian Systems