Pass original exception's backtrace to InstanceFailure and ActionFailed.

This should help to uncover the backtrace of the original exception
which was raised.
Fix bug where action failures are swallowed with a nil inside an ensure.
Raise a UserError if the name attribute isn't in metadata.rb.

References #116