Move some http stuff to background thread.