add 'format' event

If the 'format' event is present, it is expected to set item.text to the actual text which should be rendered. Whether it is rendered as text or html will still depend on the 'html' option.