refactor postRequestForJson; work on OAuth for Twitter