Use event model.
Roughly add some https logic
Fix bugs
Support https
v0.7.0 Update demo