Add settings in local_settings for SSH connection

REF 7a7ebf7c9139d0d60efa294aa7701dd24321d30f
Conventions
Sync should not be called from command line
Remove some lines
More logging
Prefix all redit values
Move javaScript code to a file