minor extensions
Reorganized and centralized saving, also at end of video.

Path bugfix
Added: pathcounter export, main() query mode,

Updated: area ID vs IDX
Bugfix: LocationRegistration.areaHitId value assignment bug fixed
Merge branch 'refactor' into demo