API cleanup
Fixed remove paths dialog shows only the scrollbar and refactored HistoryUpdate and CommitUpdate
Fixed rewrite_branch handling and repository cleanup if path removal is canceled