Homoclinic orbits and cycles in the instabilities of a laser with a saturable absorber