First draft of session managing server done.