Once you get it straightened up add some triangles with bracing or you can nail a sheet of 5/8 plywood onto the studs on the inside in the corners. Horizontal siding has just about zero resistence to racking vs. plywood sheeting. Once its braced up you could remove the old shingles and reroof it to ease some of the strain.
Ian
__________________
|