Allow stylesheet contents to be provided, to cope with cross-domain requests

Added in the handling for an extra option, that would permit stylesheet contents to be provided for any or all of the document's stylesheets.