Fix some warnings in ServerScript

There are hundreds of warnings/potential errors in this, and it will take much more time to go through than other files.