Persist data when the service is stopped

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>
Move time control logic to Reporter class

Signed-off-by: Martin Abente Lahaye <tch@sugarlabs.org>