Issue refs #1598: add helper for report template (and other files) upload with chunked upload support, implement new template uploading, update api-client