Basic client

Basic PHP client based on sockets. Still much to do.