reworked fw log capture framework and implemented majority of greylogd main