Drag and drop functionality generalised.

Images can now be drag and drop uploaded in the image chooser popup.

Documents behave like images for the purpose of uploading them.