Fixed up the client and fixed a lot of bugs with Windows development.