Fixes #3860 - automated discovery provisioning
Fixes #8649 - Register to Apipie via plugin methods
Fixes #8712 - added refresh_facts to api