Some shuffling around the oauth library, and then make some updates to the API index.php to use the new lib