Move backtrace capture to backtrace module and macro

Created by  David Tolnay  on October 8, 2019
45AUHCDJX5A54AYFMJRGDHKMBQ3WYBIPAVPDPY7TCLK5WN5TSROQC
Change contents