(treeview) cookie based persistence should add a cookie path option

(treeview) cookie based persistence should add a cookie path option

Now the tree-view plug-in use current path to set cookie, it will be more convince if cookie path could be specified.
I attached a patch add a option named 'cookiePath' which be used to assign cookie path. By default, the cookie path is '/'. It works for me.