Add support for pasting files in Xlib

Add support for copy/pasting files.  This was tested using pcmanfm. 
Also fixed a possible memory leak where XFree would not be called on data after drag-and-drop.