MongoDB Session class

Add mongo db session storage.

Migrated from #1920