logger lines added
tab-space indentation fixed
prints changed to logger
pat escaping parameter added
file_replace preserves permissions from the old file
escape feature disabled in file_replace
Merge pull request #120 from KanoComputing/logger

logger and fixes