Bent Door Hinge & Partially Broken Frame
If the door slammed so hard that it squeezed past the door stop then the thing that you will have to do is to remove the door stop so that you can try to wedge the door back to it's correct side of the opening. Once that is achieved you can proceed to replace the hinges with new ones and then finally reinstall the door stop. 

This picture shows what I refer to as the door stop molding:



(Picture Source: http://www.agnewtimber.com/12-x-44-pre-primed-whitewood-ogee-door-stop-door-set.php?cat=99)