add saveWidget function

Function to save a widget as a web page (sizingPolicy is used to size it appropriately for a full web page) Dependencies are either copied into a _files directory or included as base64 encoded data. In the latter case a version of pandoc must be installed (the function checks before attempting to do the encoding).