Add socket.h, socket.c
Add command socket listener
Add debug statement to log when socket gets closed
Add parser tests
Fix pid file check, add switches for command socket