Looking at your previous symptoms I wonder if you don't have a gluten allergy or celiac disease. Gluten allergy will cause your body to be unable to absorb B6 and niacin. Deficiency in these nutrients will also cause the psychological symptoms that you noted. - depression, dilusions, paranoia, suicidal tendencies etc. May people who are diagnosed with schizophrenia have a major deficiency in B6 and Niacin caused by gluten intolerance. Is there any sign of this in your family history?
I know a number of people who were diagnosed hypothyroid who are also gluten intolerant and one who after going on a GF diet all Hypothyroid symptoms disappeared.
Gluten also contribute to the IBS symptoms because it will ruin your guts ability to breakdown food into usable format.
You may also try taking Chlorella to detox the heavy metals.