Server and client fixes

Fixed a bug in client that made the udp connection not disconnecting on
readthread stop.
Added a sleep in beginning of camera init, to make sure the camera is
ready when the image is needed.