code: function inwx(opts, readyCallback) {
    this.connected = false;
    var that = this;
  
    // Invokes with new if called without
    if (false === (this instanceof inwx)) {
      return new inwx(opts, readyCallback);
    }  
  
    if(!opts.user || !opts.password) throw new Error("missing user and/or password");
    if(!opts.host) opts.host = opts.api == "production" ? "api.domrobot.com" : "api.ote.domrobot.com";
  
    this.client = xmlrpc.createSecureClient({ host: opts.host, path: "/xmlrpc/", cookies: true });
  
    this.call("account", "login", {user: opts.user, pass: opts.password}, function(response) {
      this.connected = true;
      readyCallback.call(this, that);
    });
  
    return that;
  }
docs: /*
  init inwx api and call readyCallback when ready
  @param opts            {api: production|testing, user: string, password: string}
  @param readyCallback   call when api is ready