Add mozlog support

Add mozlog support
Slightly refactor

with this patch we can run mtbf on master currently.

TODO: fix test_mtbf_number_keyboard.py; keyboard type detection doesn't work any more