Kill a kernel when the user leaves the page

Other changes to the API
Create Multi-Mechanize tests
Use msg_type in message header
Modify .gitignore for v2 at top level