Bug 875562 - Part 8: Write crash events for main process crashes; r=bsmedberg

This patch makes the crash reporter crash event directory aware and
writes main process crash event files at crash time.

--HG--
extra : rebase_source : 1d6a817ae401230b3fe8fcd236468ceb3e309a10