Hopfological algebra