Judaism: healer of all Wounds?

How does traditional Judaism define mental illness? What remedies does it prescribe to treat it? Is adhering to the halachah and espousing the ways of G-d itself a treatment, in the halachah’s eyes?