Added support to handle empty query parameters.

Added support to handle empty query parameters.
Added support for global options passed to the API object via API().set_options(...)
Global options will be passed into the Request object to affect request handling behaviour.