Added syncService.running flag and changed to setTimeout() instead of setInterval().

References #29.