lot of fixes

ok with this updates the project compiles already,  but  the ServerWebSocket has to be re implemented.