Add file-path to emacs events.
Big refactoring (including separate memory vs logfile cache, etc.)