SAN FRANCISCO (Reuters) - Twitter Inc heads toward its quarterly earnings report on Thursday with a stock that has risen more than 40 percent since April when much of Wall Street was ready to write off the tech company.