Fixes #798: Allow a protocol-relative URL to be passed to add_static_view

This builds on pull request #838, but generates the URL using the current protocol of the request, instead of plainly rendering the relative ``//urls``.