cmake: Math passes unit test.
cmake updates.

- Cmake is largely sorted. Remodularized it back to the previous
layout, but with the new mechs.
- Event and Video unit tests succeed.
CMake build works on linux.

Overall, it's a little dirty, but it all works.