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