more nb changes

1. tobi 'new stuff'
2. added function for killing a notebook kernel
3. added notebook save and kernel terminate on tab close, fix refresh