Store backtraces as string lists, suitable for logging

Debug.backtrace_is_important: exn -> unit
  -- this snapshots the stack and associates it with exn
Debug.log_backtrace: exn -> unit
  -- this writes the exception and the backtrace to the log

Signed-off-by: David Scott <dave.scott@eu.citrix.com>