Bug #2467: live migration in xen4

(cherry picked from commit 563168e1ebe37812951e3a33bb77f4eaf644970e)
Bug #2467: add multiline_exec_and_log function to scripts_common.sh

(manually extracted from commit 514ffed512dd3602b4ff5f61eb395c45df6a4cfe)