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
Yeah. I felt bad about this too. I didn't feel like digging in far enough to make the change though...