Added ylog library as logging library (from http://dev.yorhel.nl/ylib)
Use ylog instead of perror and other errors
Remove debug logging macros
Add signal handler to shutdown cleanly
Fix usage of uninitialized struct sigaction