Add bind-folder-listing-to-preview.js to /common-wl

Used for image-gallery and folder-listing
Fix path urls and change getImageGalleryDialogtHtml to getPluginDialogHtml