some cleanup of the main recorder loop
fixing some tests
adds working, tested event and blob store synchronization