fixed bugs with calcdb rest api and RestParams
changed http client to use browser-compatible multipart requests