Layoffs, cutbacks and Twitter controversy: A tricky year for Tesla