Passing the Mdm::Task down the chain

when reporting hosts from an Mdm::Task we need to pass the task all
the way down. this wasnt done for the metasploit import format.
Merge branch 'bug/9582-metasploit-imports-and-tasks' into upstream-master

Land #3299