Support for express 4.0 version

Sessionstore supports now version 4.0 of express. a new function in library checks version of express and  returns the session accordingly. every database uses now this function to get correct session.

(also did code style)