Add previews to OC.dialogs.filepicker()

Fix #4697

@tanghus @jancborchardt @kabum @georgehrke