Ready: TLS and other security settings

Addressing issue #1303

@macintux Could you give this a quick once-over? Security is not a strong suit of mine.