Command line flag and REST command to reset and resync (fixes #85)

Still needs implemention in GUI