Various fixes

* Avoid shell injection.
* Fix compilation errors due to libxseg changes in xq_append_head() and xq_pop_head() ABI.
* Handle various tapdisk states.
* Add new blktap class static methos for retrieving block device statistics.