Remove 'server' from globals

It's only required to start the server and the variable is therefore
never used. Require it where needed.