Histone modifications influence mediator interactions with chromatin