Changing the Twitter API version to 1.1, as the version 1 APIs have been

discontinued. Also modified the login to popup.Change only in sample.
Tests done :- the sample runs fine.