Never reenter the password automatically.
Heavy refactoring onto the application

Also added log and config support.
The latter one is currently used for DB conn config,
email config and log config.