Updated the session library to handle multiple, named sessions.

- Includes passing unit tests.