logger and fixes

- changed all print lines to logger
- logger lines added to most important functions
- consolidated duplicated file_replace functions to config_file
- fixed tab-space indentation issue on kano_settings/proxy/proxy_config.py
- preserving file permissions in file_replace function