Ecological stability, cycles and chaos