exception-handling: better handling of remote exception and logging.
- detect traceback sent form the remote sides
- unified handling of exception handling in backends
mercurial: replace ancestor to pure python version for hg 4.1 compatability problems.
this was moved now to debugcommands, but we don't need to run it via commands
as the code is very simple.