refactoring, split child-process to handle pasori devices.
Merge branch 'moodle_sync'
refactoring.
fix minor bugs.