Fix some notebook model tests
Improve Session REST API tests
Fix session API tests
Fix some HTTP status codes in sessions API
Clean up sessions code from static analysis
Fix sessionmanager test
Fix notebook manager test
Merge pull request #4364 from takluyver/multidir-tests-2

Multidir - tests and polishing for sessions REST API