Add function to return stack traces.

Simple function that can be used across Go projects.

Since stack traces are unstructured, let the consumers do any parsing if they desire.