Use request instead of restify for the HTTP client.
Remove client.close() from examples since it is removed. Also update require path.