shiny dependency handling

This PR adds support for more sophisticated handling of HTML dependencies for shiny documents.