Using wlog for logging in clients now.
Using wlog for server now.
Removed obsolete headers and defines.
Fixed compiler warnings.