server: Fix all scala-related warnings

And did it without any new dependencies :-)