Updated messageHandler to be a single instance per web server

Updated messageHandler to be a single instance per web server,
Added session manager mock class
Could you please add a new task into YouTrack to track the implementation of ```SessionManager```, @pbidenko? Thanks!