Yale’s most popular class ever is now available for free online — and the topic is how to be happier in your daily life