Move import task creation from pipeline to factory

This will make it easier to implement #1116.
Warn user when no files are imported from a directory

Fixes #1116.
Fix py26 string format
Merge pull request #1127 from geigerzaehler/empty-dir-warning

Warn user when no files are imported from a directory
Changelog for #1127/#1116