Added better support for pause/resume

Can you please all also this here. It will improve significantly the pause/resume feature in btsync-user...