Adds ua method for providing your own UserAgent.

Also documents previously secret "url" attribute.