WIP for C port
Convert unit tests to GTester

After porting the daemon to C, switch unit tests from Jasmine to
GTester.