Support `hostname` property in RestAdapter

Previously, when constructing a URL based on an object,
`RestAdapter` supported the `host` property but not the `hostname`
property. A side effect of this was that `host` overrode the `port`
property, because according to the `url` docs, `host` is supposed to be
a string that contains the `port`:

http://nodejs.org/api/url.html#url_url_format_urlobj

This change allows specifying `hostname` instead of `host`, which in
turn allows specifying `port` as a separate property.
Merge pull request #375 from rendrjs/feature/rest-adapter-support-hostname

Support `hostname` property in RestAdapter