Made Oauth command line driven and added url encoding