fixed some bugs in json updating for gallery; modified scripts on fileupload page - now all scripts work live (with dynamic elements); some modifications in vids&pics entities - to ease getting of paths