Extension testing and extra cURL options, a few minor coding style fixes