rewriting twitter rest api to be more extensible