Fixed several errors

Console commands ran by a client now run the command via the server
Several improvements