Updated code to support new Twitter 1.1 API

Twitter API 1.1 supports on JSON. Hence removed option to choose format was removed. So all function parameters have now moved one up (EG. $2 is now $1).