So, here goes a proactive idea - that may not be enough to fix what is already broken, but maybe can prevent future disasters in similar situation:
For each external link from Stack Exchange sites, Stack Exchange could fetch at least the structure and text on the target page and back it up internally. Later on a mechanism could be added so that upon verifying that the intended linked content is no longer in place, Stack Exchange users could perform an action on the post itself so that from then on the link will have beside it a small icon to see the fetched version, besides the original URL.
For text and code this should be a reasonable load to handle (if big), and if the target content is only available by running front-end code on the target link, that is a separate problem to be tackled later.
I started writing this with the intent to suggest triggering a fetch on the URL to http://archive.org, instead of having Stack Exchange make the content copy themselves - but I changed my mind and suggested an internal backup first thinking on the tremendous load that would go to archive.org instead, even though it is "their job". But a partnership with archive.org so that Stack Exchange could at least partially sponsor this extra load would be even better. (They already have all the expertise in fetching and retrieving the content that matters most, dealing with copyright issues on the contents fetched, and whatever they get turns out to be publicly available, not restricted to a single private entity, as awesome as Stack Exchange is.)