refactor delete confirm dialog using bootbox.js and only as POST request
remove attach with confirm and fadeout efect
as_attachment logic in get_file, by default only images are embeddable.