Many changes to add link-to-file and file-upload abilities to the modal editor
Initial revision