Create base directories for the client, the server and the common part.