Call Dialog's initialize from ShareDialog

Otherwise options don't get initialized with newer version of Backbone
rm leading space and escape quotes in search embed

When the search embed had DocumentData elements, they are enclosed with
quotes, which causes a parse error when loading the search embed unless
they are escaped.