Closes tamasgal/royweb/issues/#3 implements working session management