Run edit-style rebase in Worker

Pass edit manager to Worker
Refactor EditManager

Separate git concern and dialog concern.
The base class provides git concern, it should be in git package.
Run edit operation in thread