Move StackCapture to agent::common for reuse.

BUG=
R=sebmarchand@chromium.org

Review URL: https://codereview.appspot.com/169420044