Create service for a OAuth.io and move the code, work Wen and PhoneGap