implmented new server side token based connection managment, issue #2229.