Add support for multiple sessions in a browser

Fixes gh-49