[WIP] after_failure deploy hook

Tests not passing yet. This probably isn't running in the correct directory and will probably need some special treatment from the hooks.

We may have to take a different approach for this since everything changes by the time we rescue here.

Thoughts?