Fork a subprocess, marshal events over a pipe

Signed-off-by: David Scott <dave.scott@eu.citrix.com>