Tesla: Bitcoin sales and environmental credits boost profits

The electric car maker reports record deliveries for the quarter despite production hurdles.