fix ws session loading, tests, and session usersystem
consensus calculation work properly.