Add jQuery cookie plugin
Add APIs to save and retrieve painting events