CC-5800 : Merging File API into new media tables

fixing up media deletion from library datatables.
Need to still check user permissions.