I hope you start feeling better soon.
I approached burnout myself in July of this year myself, so I have an idea of how you might be feeling. I've also had psychotic episodes in the past, that I don't particularly want to get into. However, taken from one who has had trouble in the past, take your time and relax, and recuperate before taking on tough tasks... like coding projects. Its really hard to be creative or even have the energy to do stuff when you are depressed and miserable.