Clone of http://oauth.googlecode.com/svn/code/php/