src/journal.lua: Add :to_table() method that converts a journal entry to a lua table