First class categories
Improve code
Initial qapi-test skeleton