Implement log reading and fix some bugs in the flash_queue update (tested with wrapping of sensor event log)
Critical logs were being tagged as debug.