Adding MediaContextBase to collections and introducing base class for entities