Somewhat universal OAuth tool in PHP written using cURL