Moved all URL functionality to WebRequest.

The WebRequest class handles parameters and generates the final request
string which is passed to libcurl by the Curl class.