I'm sorry to hear of this... i've had several friends laid off over the years and it is always an unpleasant feeling, aside from the clear economic difficulty it places on a person.
Good luck finding a new, stable job that you like. I'm glad for the friends you made at this job at least. Something good came of it.
And most of all, well done on how you are handling things. I'm glad your meds are helping... you also sound very self-aware, so i tend to think it is a combination of a positive psychological change on your part, besides the neurochemical factors with the meds.
Hang in there!
~ waves ~