Mostly merged server/ from OpenJK/codemp/