Add base64_digest for subresource integrity

This PR adds `Asset#base64_digest` to simplify the implementation of [subresource integrity](http://www.w3.org/TR/SRI/#htmlscriptelement-1).

/cc @josh