Fixed reading of first line of file for empty notes.
Reimplemented handling of notes using MailboxProcessor to handle changes from disk.