Split sync and time related functions into their own files. Event now forks out individual threads for each search thread.