Add methods to pause task execution progress.

Add pause(), is_paused() and resume() methods to give ability to make
pauses during task execution. After resuming remaining time is
calculated using only milestones that were passed from the resuming
moment.