Simplify building the JWT

Phill Cunnington suggested using JwtBuilderFactory,
which simplifies building the JWT,
and corrects at least one error that I found
(“aud” takes an array).

This commit also fixes the documentation
in line with Phill’s explanations.