Add base64_digest for subresource integrity

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