[net] add initial support for reopening logfile
Merge pull request #55 from Chilledheart/reopen_log_file

[net] add initial support for reopening logfile
Add CMake Build System
Resolve pidfile resource leaks

This patch resolves resource leaks caused by not closing the file streams upon
an write error.
[FIX] homebrew autotools path
Add clang-format file