Adjusted the ajax parameters; added additional files to support OAuth.

Please review.