Slight cleanup of CL_GetServerCommand

* Check the accesses to the args more
* Comments to explain what it actually does
* Make a recursive function instead of an unnecessary goto
Command.cpp no longer depends on framework files