Adding very basic HTTPS support.
Adding some TODOs.