fix --search help and implementation

* fix help for `eb --search`
* move function implementing the feature to `main.py`, it doesn't belong in `modules.py`
 * also enables unit testing the feature via the unit test log thing
* add unit test for `eb --search`
* rename global `log` to `_log` in `main.py`

This fixes #477.