logging: removed 'entering' log messages
debug: don't exit after a certain number of debug loops
app: removed --sync and --use-local-ls-lar options

- Changed all checks for $cfg->defined(q(sync)) in code to look for
  $cfg->defined(q(dry-run)) instead