Add missing has_exit_handler method.
Refactor in preparation for exit handler support.

Factors all the unwind logic out, and ensures we do it after all the
other cleanup work, so that we're ready to head back into the interp
if we need to run a LEAVE, etc.
Bring all unwind logic into frame.c.