Modified node-js SDK to allow for a configurable hostname

This pull request contains changes to the SDK required to enable a configurable hostname for the server providing the API.