[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.
[lib] removal of unused code
[net] Add role for user