simple-oauth2 library adapted for Appcellerator Titanium