Update CloudFront.php

improved on codebynumbers' update to use CURL and fixed the debug code.