Bug 824162 dont mess with focus until after the event target handles it, r=gavin
Bug 834059 - Send processses into the foreground when they first launch, so they don't get killed quite so quickly. r=cjones

This patch also sends the preallocated process into the background immediately after it's launched.
Bug 832943 keep explicit reference to our error handling web listeners to avoid unexpected gc, r=felipe