President Obama’s farewell speech was a remarkable pep talk on democracy