Fixes #3860 - automated discovery provisioning

Replaces https://github.com/theforeman/foreman_discovery/pull/97
Oh well, I suppose discovery was going to gain some migrations sooner or later. I'd done so well avoiding that so far :D