Optional TLS and timeouts for statsServer
Use SSL if we have the config for it
Merge pull request #603 from freeformz/ssl_all_the_things

Use SSL if the config calls for it