Ecclesiastes happens to be one of my very favorite books precisely because it is delightfully, pessimistically "real." It is in the Bible at all only because some scribe added a postscript to make it at least slightly "religious." I actually do believe that humans and animals have the same spirit - I believe cockroaches are on the same continuum of Life as humans. As with the survival of consciousness, I base my beliefs on experience rather than Bible interpretation. I have had a number of afterlife-related experiences with animals (alas, no cockroaches) - one of which was included in Kim Sheridan's successful book Animals and the Afterlife. Given the choice between experience - mine and that of millions of others - or dubious Bible verses, I go with experience. But to each his own. The future hope that Resurrection offers is not, I believe, an awakening from oblivion but a transformation; at some point, the consciousness that I believe survives death may be transformed into something unimaginably glorious.
Scripture does say that the breath of life was in the animals as well as humans. Gen 1:30
As for the rest-- that sounds a little Buddhist and closer in line with their concept of reincarnation.... Samsara-- where a person is reborn into another life, and what they are reborn as depends on their actions in their previous life, or karma.