Changing request to use wp_remote_request helper, converting spaces to tabs
Bringing code up to WP coding standards
Bringing code up to WP coding standards, removing unnecessary components