normalize the rerun_log related variables into RERUN_LOG_*.

Fixes #178
use safer bash shebang statement for shocco.sh
refactor rerun_log function to use numeric levels internally to
make code more efficient. Users still specify levels using symbolic
names. Added more unit tests.

Fixes #178