Ability to extend HTMLpurifier config (resolves #1297)

Hook `htmlpurifier.config` added.