After reporting a strong second quarter in both revenue and active monthly users, Twitter saw a big boost to its shares in after-hours trading.