Fix minor TCP-blocking bugs

The hash bug fix was from 034f947dd.
User-level dial and get_html update

To use, #include <net.h>.  Later, I might write announce() and whatever
others we need.

We can move dial() or snprintf_overflow() somewhere else, if we want.