HTTPS support
Log level option. Fix small bugs.