Split motionDetectEngine into 2 files
Add reconnect feature