Add a duration feature for time-lapse mode

Now in the time-laspe mode, Motion will stop as the duration supplied by
user.

Signed-off-by: kfei <kfei@kfei.net>