Adding comments and improving consistency.
Adding redirector logic to send non-https requests to https.
Comment cleanup.