Scattering Theory in the Energy Space for a Class of Hartree Equations