CLEARWATER: CP-4102: xapi licensing changes

* Create field pool.license_state
* Create API call pool.apply_edition
* Add socket count to Host.cpu_info
* Add database upgrade rule
* Add a high-level testing framework and some tests