Fix history import_dataset() when run after a tool.

An additional history.refresh() before

  old_ids = set(history.dataset_ids)

would be needed, but the code can be simplified now.
Remove from ObjHistoryClient 1 method which should be called from History instances (objects cleanup).