Add Timeout + Fix host path bug.

* Added a timeout to the request (10 seconds).

* Fixed a bug where 'this'/'self' was undefined in check(). This meant that this host path was not correctly built. self.host was equal to undefined.

Please verify the host-path bug before accepting pull request. Do you currently have this broken?