Introduce MainLoop and utilities.
Add Google Test Framework.
Introduce simple MainLoop test.