Newserver

Updated big parts of the server.

Be aware of hidden scope mistakes due to the change to local.