Configuration

@dknochen Doesn't make sense to require crypt here if `templates` depends on it. You can either:
* merge `crypt` and `templates` in the same file, and rename it setup for instance.
* Import `templates` here and in templates.js import `crypt.js`. But here the terminology would be all over (it's the config, the cryptography and so on).