rewrites the default save function for branches and adds crash prevention module
optimizes some files and adds many methods to crash_prevention
can load saved data from local storage - currently does not adjust rank when inserted, also does not clear when complete
correctly adds or updates items that were found in local storage, adjusts rank etc as nessesary
tracks offline changes and adds them to server on page refresh with full connection
begins exp. backoff when unable to connect, continues until connected and all synced
handles notes erased while offline
offline changes to notes (including deletions) are cached in local storage and recalled upon reconnecting or reloading the page with a new connection. server is updated accordingly
cleans up and adds a few things to crash_prevention
fixes bug where fullsync was not syncing all notes, implements notifyConnection to stop backoff and sync when other source notices a connection avaliable
starts adding tests for crash_prevent
notes now show up on page after refresh though in the wrong place
commented out test, changed tree.add to tree.insertInTree
refactors the branch save & destroy to allow extra callbacks on successes or error
fixes bug delete rank bug, and makes the save and destroy methods complete
changed insertInTrees to Add to prevent rank changing problem, still does not render correctly
prevents adding extra empty notes
fixes bug for when user doesn't have {} in localstorage
removed console log
moves back to adding new notes to the larger collection allNotesByDepth