Change session_new() arguments to use user_data directly. And Add threadpool in base.