add missing associations to collection.rb & media_entry.rb
spec & destroy_ineffective refactored