Fix import and group selections. (see #9860)

The problem only happens when the user is a member of more
than one group and follow a specific workflow (details added to
ticket).
Fix import status display (see #9859)
Fix duplicate import problems (see #9859)
Fix group switch when on-going import (see #9860)
Remove commented out code.
Fix cancel status notification.
Fix import cancellation (see #9879)
Merge pull request #622 from jburel/rebased/develop/import_bugs

Fix import bugs. (see #9860, #9859) (rebased onto develop)