Asynchronous connect.
Add HTTP proxy support.
Fix handling of self-quit.
Fix consistency of duration string storage and usage.