Code cleanup

- Move liblog/list.h to tools/list.h
- Specify all source files in CMakeLists.txt