Add gitignore. Fixed connection drop bug.
Add settings.json.sample. Add logging python module.