Partial translation of ZemantaClient
ZemantaClient converted to scala (to be tested)