First working loop version
1. Can register loop
2. Can start timer
3. Perhaps the normal work of thread wait and notify at proper time
4. ?????
Merge origin/master