Added const correctness to server and client objects

I was looking through the code and figured const correctness might be nice to add in as an example for everyone.