Stochastic thermodynamics for active matter