Adding events

Based on the example given at http://albburtsev.github.io/jquery.typist/src/html/dialog.html, pasted the content of http://albburtsev.github.io/jquery.typist/src/jquery.typist.js which contains the events (missing in the published release).