Media is attached to content upon save
Added permissions related properties to Media model
Added media property to baseContentModel