Redo UserAgent interface.

It now looks more like the familiar LWP interface.