add debug mode and https

https for login/updPwd/register
debug mode is enabled by add ‘“debug”: true’ in config.json