Parse functions for virsh 'list' commands

Hi, there:

I added two functions about parsing output,
because both sathnaga and me need parse output of virsh commands like below:
```
 Id    Name                           State
----------------------------------------------------
 -     jeos                           shut off
```

And a common function to do this work will be more suitable,
so @sathnaga, please check my version and give me your advice.