clean + comment code
add a hook system
use select and add a basic ping hook
we can now read server's socket and stdin simultanement
reformate output and add a daemon mode