support async

I needed these changes so I could start the server only after the session store is connected.