node wrapper around tDoc REST-ful APIs