fixes #6522 - move request code out of chef module

The patch also removes foreman_ssl_ca, foreman_ssl_cert and
foreman_ssl_key config options as they don't appear to be used or
documented. Existing ssl_* options are used instead.

(Please let me know if you'd prefer to track this change in separate ticket.)