Move addToJournal to own module
Start to refactor global api into lib/wiki.coffee