Merge pull request #61 from BobBall/issue-438

Stop XAPI running if we're not in dom0.
Merge pull request #62 from BobBall/issue-438

Block xapi waiting for xenopsd-xc
Remove unused check_output import