Server and Client classes

- server is almost ready to use
- need to add events etc
- client is not ready, needs refactoring