changed the flow inside client.c.
added method to create resume file and made metafile_free() method idempotent.
modified pwp_start() to accept resume file path as argument.