First version of shiro rest session manager