Move message handling from URLs to the session store.