implement basic auth support

- expose basic auth support via `--secure`
- make the project a bit more cloud friendly by providing `process.env` variables for environment specific command line options