content&background: remove all heuristics for foreground mode

By using command keys which we can define we can have a definitive
keystroke to active a foreground Emacs shell without messing about
with failed connections to the content scripts. This is much cleaner.