Replace client pointers with references

References should be used when NULL is not necessary, but if there is a possibility of a NULL value, pointers should be used.

Also, in server functions, the stupid conversions from client to cn and back should be removed.

**This might take a while to complete (DO NOT MERGE YET)**, and it will definitely mess up the ability to merge c++11/vectBackEnd even more.