use __construct() which is correct PHP5, instead of the PHP3/4 constructor name
adding curl implementation
added use of exception instead of using die()
fixed: default empty array, and version variable
eliminate error var, test for response object, try...catch exception
example using curl's proxy options
use is_null()
simplify _encodeQS(), minor syntax mods