Refactoring Conference/Event media to new media object

close #420

As in #420 described Conference and Event has now a has_many relation to media.
why we use temp tables? It is a `phpism`. Could you please explain why we do so?