Add file download API to client and file transfer API to server