code: function Client(endpointUrl, sourceId) {
  		this.restClient = new restClient.Client();
  
  		this.endpointUrl = endpointUrl;
  
  		if (this.endpointUrl) {
  			// Remove the trailing slash if necessary
  			if (this.endpointUrl.indexOf('/', this.endpointUrl.length - 1) !== -1) {
  				this.endpointUrl = this.endpointUrl.substr(0, this.endpointUrl.length - 2);
  			}
  
  			// Add the default version if not present
  			// TODO: The client should take care of the version in a better way
  			if (this.endpointUrl.indexOf('/v1', this.endpointUrl.length - 3) === -1) {
  				this.endpointUrl = this.endpointUrl + '/v1';
  			}
  		}
  
  		if (sourceId !== undefined) {
  			this.sourceId = sourceId;
  		}
  	}
docs: Constructor for the iFLUX Client.
  
  @param {string} endpointUrl The URL prefix for the API (e.g. http://api.iflux.io/api)
  @param {string} sourceId The event source id
  @constructor