Added basic authenication command line flags and corresponding tests

- added info to the `--help` option
- updated the documentation
- added tests

This fixes issue #47