"No data" messages for /earn and /learn

Prevents `api.js` from erroring when no data is returned, but status is `ok`. Adds a `no_data` block to the templates to display a message.

While this is less likely to be useful in prod once everything is set up, it's really nice in development when you stand up a brand new Open Badger but haven't added any test data, for example.