Removing some semi-colons
Updated version
Added test for sending a large number of log entries
Merging in master
Made tls optional and added check in tls connection for valid cert