make all static entities invisible from the server (by conditionally not compiling them on the server) + remove now unused code