Add Result class.
Return Result instead of traces to include failing traces.

This also simplifies extending Result in the future.