added config directory.
some cleanup.
addressed review comments.
moved load-config to config.js
moved en-/de-crypt to crypt.js
factorized templates task.
implemented flat encrypted config plus generated config.json