Updated twitter code to work with Twitter API 1.1