Attempting to add rudimentary SSL support.

This isn't working because I don't know how golang template variable scope works.