Now notes are saved in the git repo, and immediately synced. This is not the best implementation, as the notes are being reloaded a lot, and the error handling is terrible (I miss golang). But it's the first working poc.
Just giving some more structure