Move Csocket to a submodule

The biggest challenge was `#include "defines.h"` in `Csocket.h`. That's where [-iquote](https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html) comes in use.

I'm not an autotools guy, so this really needs some testing and review.

Updates #580.