Refactor piwik interaction code to remove dependency on the structure of the Aegir task object, and to remove PiwikAPI concern from hook_pre_hosting_task.

Signed-off-by: Shai Sachs <ssachs@ngpvan.com>