if a string is provided to createClient, rather than opts, assume that it's a url.
fixed formatting.
added documentation.
Merge pull request #619 from bcoe/default-url

Default to url, if string provided to createClient