Added resume support if the connection breaks during file sending.
Updated public api.