Add server.config
add timer on per thread
Support thread context