Add client with preliminary connect code.

Also updated compiler flags to use c++11 and throw a lot of warnings.