Fixes #3860 - automated discovery provisioning

Replaces https://github.com/theforeman/foreman_discovery/pull/97
> I think you fogot these TODOs :)

Yeah, I know. I need to write tests for the API. Will be provided in the
next push. Updated the comment (above).

-- 
Later,
 Lukas #lzap Zapletal