Implement logger: log_msg()
Avoid type-punning pointer warnings, use C99
Merge branch 'master' into nonblocking-connect

Conflicts:
	src/connection.c
	src/listener.c
Fix close_connection for additional states