Updated proxy registration for foreman_api 0.1.18+

Replaces: https://github.com/theforeman/puppet-foreman/pull/128