Revert "Do not use global sessions"
Merge pull request #372 from juju/revert-361-copy-session

Revert "Do not use global sessions"