Move base64 out of extra.

In accordance with the dissolution of libextra (#8784), this moves base64 out of libextra and into its own module.