Tesla reports slide in earnings and revenue, but investors cheered by pledge to accelerate rollout of cheaper electric vehicles.