Added "historyAdded" doc event.

Added a doc event "historyAdded" which is dispatched when a new entry is added to the document history. It is not dispatched when a history entry is amended. This allows CM's history to be integrated easily into application level undo/redo.

Signed-off-by: Grant Skinner <info@gskinner.com>