restructures in 3 parts client, server-daemon and server-www.