Transfer files in chunks

When a file is too large, it is splitted into chunks and it is
sent chunk by chunk to destination.

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>