add auto activate mechanism in MVD

1. move auto activate mechanism into MVD main thread;
2. add activate mechanism enable/disable by macro.