Bug 1022928 - Use breakpad symbols when available.

Add a new option to profile.sh:
    -s <breakpad-symbol-path>

When this option is used, symbols are resolved using breakpad .sym
files.

This is useful for running profile.sh against nightly builds.
Merge pull request #382 from walac/master

Bug 1022928 - Use breakpad symbols when available.
Bug 1061801 - profile.sh should support symbol.api.

The "-s" option now accepts an url, which tells that we want to use a
symbol server API for symbols resolution.
Optionally source $DEVICE_DIR/flash.sh for per-device flashing commands.
Merge pull request #390 from cgjones/per-device-flash

Optionally source $DEVICE_DIR/flash.sh for per-device flashing commands.
Merge pull request #389 from walac/bug-1061801

Bug 1061801 - profile.sh should support symbol.api.
Bug 1069017 - Add a flash.sh target ("shallow") to flash gecko and gaia.  r=mwu

This is useful when updating a tree to current source and reflashing.
It's useful to have a single target for two reasons:

 (1) it saves waiting for the device to reboot and typing another
     command.

 (2) there's code that runs at startup to reregister gaia apps when the
     gecko version or build id changes.  If you reflash gecko, reboot,
     and then flash gaia, this code doesn't get invoked correctly with
     the new gaia.  See
     https://hg.mozilla.org/mozilla-central/file/4f2cac8d72da/dom/apps/AppsUtils.jsm#l482
     and its callers.
Bug 1073515: report the complete symbol correctly. r=dhylands

To remove the source file path and source line components from the
breakpad resolved symbol, we used a simple string split operation
separated by whitespaces. This had a side effect when the symbol
itself contained white spaces.

We now preserve the source file and line number information, but we use
only the basename path for symbol location info.
Merge pull request #387 from dbaron/bug1069017-flash-target-gecko-and-gaia

Bug 1069017 - Add a flash.sh target to flash gecko and gaia.
Merge pull request #391 from walac/bugz/1073515

Bug 1073515: report the complete symbol correctly.
Make fix_b2g_stack.py work with the new stack trace format. r=erahm.
Merge pull request #384 from nnethercote/fix_b2g_stack

Make fix_b2g_stack.py work with the new stack format.
Bug 1044709 - Handle text or JSON output from DMD in get_about_memory.py. r=erahm.
Merge pull request #392 from nnethercote/dmd-json

Bug 1044709 - Handle text or JSON output from DMD in get_about_memory.py.
Bug 1062709 - Tweak fix_b2g_stack.py's main regexp. r=erahm.
Merge pull request #393 from nnethercote/fix-regexp

Bug 1062709 - Tweak fix_b2g_stack.py's main regexp. r=erahm.