Added logging and thread stopping to the Casu API.
Updated casu log writing.
Updated CASU API with default values for some device id-s.