updated for Twitter API v1.1

Updated code to support on JSON (Twitter API 1.1 supports only JSON). You can no longer choose the API format.